home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 January
/
CHIP_CD_2005-01.iso
/
service
/
winamp
/
files
/
winamp505_strata.exe
/
$R0
/
Winamp Modern
/
configtarget.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-07-01
|
3KB
|
112 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global GuiObject GuiObject16;
Global ComponentBucket ComponentBucket17;
Function func825(GuiObject 0);
Function func1030(GuiObject 0);
Function func1093(GuiObject 0);
System.onScriptLoaded()
{
GuiObject GuiObject20;
GuiObject16 = System.getScriptGroup().findObject(( "skin\.config\.target"));
ComponentBucket17 = System.getScriptGroup().findObject(( "my\.bucket"));
GuiObject20 = Null;
func825(GuiObject20);
return Null;
}
System.onScriptUnloading()
{
if(ComponentBucket17) {
System.setPrivateInt(( "configmenu"), ( "last_scroll"), ComponentBucket17.getScroll());
}
return Null;
}
ComponentBucket17.onStartup()
{
Group Group24;
ToggleButton ToggleButton26;
ComponentBucket17.setScroll(System.getPrivateInt(( "configmenu"), ( "last_scroll"), 0));
Group24 = ComponentBucket17.enumChildren(System.getPrivateInt(( "configmenu"), ( "last_page"), 0));
if(( ! Group24)) {
Group24 = ComponentBucket17.enumChildren(0);
}
if(( ! Group24)) {
return Null;
}
ToggleButton26 = Group24.getObject(( "btn"));
if(ToggleButton26) {
ToggleButton26.leftClick();
}
return Null;
}
Int GuiObject16.onAction(String action, String param, Int x, int y, int p1, int p2, GuiObject source)
{
String String37;
String String36;
if(( System.getToken(action, ( "\;"), 0) == ( "switchto"))) {
String36 = System.getToken(action, ( "\;"), 1);
String37 = System.getToken(action, ( "\;"), 2);
GuiObject16.setXmlParam(( "groupid"), String36);
if(( String37 != ( "subpage"))) {
func825(source.getParent());
}
}
return Null;
}
func825(GuiObject 0)
{
Int Int41;
GuiObject GuiObject42;
if(( ! ComponentBucket17)) {
return Null;
}
Int41 = 0;
while(( Int41 > ComponentBucket17.getNumChildren())) {
GuiObject42 = ComponentBucket17.enumChildren(Int41);
if(( GuiObject42 == GuiObject40)) {
System.setPrivateInt(( "configmenu"), ( "last_page"), Int41);
Int41 ++;
jump -95;
}
if(( GuiObject42 == Null)) {
} else {
func1093(GuiObject42);
Int41 ++;
}
}
if(GuiObject40) {
func1030(GuiObject40);
}
return Null;
}
func1030(GuiObject 0)
{
ToggleButton ToggleButton45;
Group Group44;
Group44 = GuiObject43;
ToggleButton45 = Group44.getObject(( "btn"));
ToggleButton45.setActivated(1);
return Null;
}
func1093(GuiObject 0)
{
Group Group47;
ToggleButton ToggleButton48;
Group47 = GuiObject46;
ToggleButton48 = Group47.getObject(( "btn"));
ToggleButton48.setActivated(0);
return Null;
}